import ReactDOM from 'react-dom/client';
import App from './App';
import {StrictMode} from "react";
import {ThemeProvider, StyleSheetManager} from 'styled-components';
import {Provider} from 'react-redux';

import isPropValid from '@emotion/is-prop-valid'
import store from "./store";

const root = ReactDOM.createRoot(document.querySelector('#root'));

root.render(<StrictMode>
    <Provider store={store}>
        <StyleSheetManager shouldForwardProp={isPropValid}>
            <ThemeProvider theme={{defaultFontSize: '20px'}}>
                <App/>
            </ThemeProvider>
        </StyleSheetManager>
    </Provider>
</StrictMode>);